import request from '@/utils/request'

// 分页查询资产状态
export function queryAssetStatusPage(params) {
  return request({
    url: '/office/asset/assetStatus/query',
    method: 'get',
    params: params
  })
}

// 检索所有资产状态
export function retrieveAssetStatusList(params) {
  return request({
    url: '/office/asset/assetStatus/retrieve',
    method: 'get',
    params: params
  })
}

// 获取资产状态详细信息
export function obtainAssetStatus(id) {
  return request({
    url: '/office/asset/assetStatus/obtain',
    method: 'get',
    params: {id: id}
  })
}

// 新增资产状态
export function createAssetStatus(data) {
  return request({
    url: '/office/asset/assetStatus/create',
    method: 'post',
    data: data
  })
}

// 修改资产状态
export function updateAssetStatus(data) {
  return request({
    url: '/office/asset/assetStatus/update',
    method: 'post',
    data: data
  })
}

// 删除资产状态
export function deleteAssetStatusById(id) {
  return request({
    url: '/office/asset/assetStatus/delete',
    method: 'post',
    params: {id: id}
  })
}

// 批量删除资产状态
export function batchDeleteAssetStatusList(ids) {
  return request({
    url: '/office/asset/assetStatus/batchDelete',
    method: 'post',
    data: ids
  })
}